package com.swf.common.xml.c;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.Writer;
import java.util.zip.ZipEntry;
import java.util.zip.ZipInputStream;
import java.util.zip.ZipOutputStream;

import org.apache.commons.io.FileUtils;
import org.apache.commons.io.IOUtils;

public class B extends A {
	@Override
	public void setA(String a) {
		super.setA(a);
	}
	
	public static void main1(String[] args) throws Exception {
		File fileIn = new File("d:/r.zip");
		File fileout = new File("d:/rr.zip");
		if(!fileout.exists()){
			fileout.createNewFile();
		}
		InputStream is=new FileInputStream(fileIn);
		//ZipInputStream zis = new ZipInputStream(is);
		FileOutputStream os = new FileOutputStream(fileout);
		//ZipOutputStream zos=new ZipOutputStream(os);
		//ZipEntry entry = null;
		IOUtils.copy(is, os);
		/*while ((entry = zis.getNextEntry()) != null) {
            zos.putNextEntry(new ZipEntry(entry.getName()));
            int b = 0;
            while ((b = zis.read()) != -1) {
                zos.write(b);
            }
		}*/

		is.close();
		os.close();

	}
	
	public static void main(String[] args) {
		System.out.println("aaa|aaaa".indexOf("|"));
		System.out.println("aaa|aaaa".substring(0, 3));
		System.out.println("aaa|aaaa".substring(4));
		
	}
}
